import * as types from './mutation-types'

export default{
    [types.game](state,id){
        state.gameId=id;
    },


    [types.news](state,id){
        state.newId=id;
    },
    // [types.comment](state,obj){
        
    //     state.news[state.newId].nComments[obj.num]=obj
    //     console.log(state.news[state.newId].nComments[obj.num]);
    // }

    [types.more](state,id){
        state.moreTitle=id;
    },


    [types.userName](state,id){
        state.login=true;
        state.nameStyle=false;
        state.name=id;
    },
    [types.logout](state){
        state.login=false;
        state.nameStyle=true;
        state.name="";
    }

}